<template>
	<view class="page-index">
		<view class="list-box">
			<text style="font-size: 20rpx;color: 999999;" v-if="list.length > 0">长按删除地址</text>
			<view class="item-box" @click="detailsBnt(item)" v-for="(item,index) in list" :key="index" @longpress="logoTime(item.id)">
				<view class="left-box">
					<view class="top">
						<text class="name">{{item.recipient}}</text> <text class="phone">{{item.mobile}}</text>
					</view>
					<view class="address">
						{{item.deliveryAddress}}
					</view>
				</view>
				<view class="right-box" @click.stop="editBnt(item)">
					<image class="icon" src="@/static/user/edit-icon.png" mode=""></image>
				</view>
			</view>
		</view>
		<!-- #ifdef MP-WEIXIN -->
		<view class="issueBnt" v-if="list.length > 0"  @click="addBnt()">
			新增地址
		</view>
		<!-- #endif -->
		<view class="empty-box" v-if="emptyShow">
			<image class="images" src="@/static/index/empty.png" mode=""></image>
			<view class="text">
				你还没有收货地址
			</view>
			<view class="release-box" @click="addBnt()">
				新增地址
			</view>
		</view>
			<entre-popup ref="entrePopup" :Text='text' @confirmBnt='showBntentre'></entre-popup>
	</view>
</template>

<script src="./page.js"></script>

<style scoped lang="scss">
	@import 'page.scss';
</style>
